<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <div>count is : {{count}}</div>
        
            <button @click="count++">点击增加</button>
       
    </div>
</body>
<script src="./lib/vue.global.js"></script>
<script>
    const {createApp,ref} = Vue 
    createApp({
        setup() {
            //定义一个动态响应数据0
            //ref里的值为动态响应数据
            const count=ref(10)
            // 返回值会暴露给模板和其他的选项式 API 钩子
            return { 
                count:count,
            }
        }
    }).mount('#app')
</script>
</html>